package org.minbox.framework.microservice.good.api;

import org.minbox.framework.microservice.common.entity.GoodInfo;
import org.minbox.framework.microservice.good.service.GoodService;
import org.minbox.framework.microservice.openfeign.GoodServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * 商品服务对外接口控制器
 *
 * @author 恒宇少年
 */
@RestController
public class GoodController implements GoodServiceClient {
    @Autowired
    private GoodService goodService;

    @Override
    public GoodInfo findById(Integer goodId) {
        return goodService.findById(goodId);
    }
}
